# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-graphics-colornames-www
pkgver=1.14
pkgrel=3
pkgdesc="Perl/CPAN Module Graphics::ColorNames::WWW"
arch=("any")
url="https://search.cpan.org/dist/Graphics-ColorNames-WWW"
license=("GPL" "PerlArtistic")
makedepends=("perl-graphics-colornames")
depends=("perl-graphics-colornames")
source=("https://www.cpan.org/authors/id/C/CF/CFAERBER/Graphics-ColorNames-WWW-$pkgver.tar.gz")
sha256sums=('d81a96e7dd0a91d3d14dbfd0f0c3c3d27d6efb891452cfdf936eb3eddd7e610c')

build() {
  cd "$srcdir"/Graphics-ColorNames-WWW-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Graphics-ColorNames-WWW-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
